<div class="tingimus">
	<div id="newsletter" class="checkbox"></div>
	<div class="tingilink">
		<p><?php echo __('liitun uudiskirjaga')?></p>
	</div>
	<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="tingimus">
	<div id="terms_and_conditions" class="checkbox"></div>
	<div class="tingilink">
		<p><a id="terms_and_conditions_link" href="<?php echo LinkGen::getInstance(LinkGen::STRUCTURE_ACTIONS)->link($termsAndConditionsNode['id'], array('module' => 'article', 'action' => 'termsAndConds')) ?>"><?php echo __('nõustun tingimustega') ?></a></p>
	</div>
	<div class="clear"></div>
</div>
<div class="clear"></div>


<script type="text/javascript">
$("#terms_and_conditions_link").fancybox({
    'autoScale'     	: false,
    'transitionIn'		: 'none',
	'transitionOut'		: 'fade',
	'type'				: 'iframe',
	'width'				: '75%',
	'height'			: '75%'
});

$('#terms_and_conditions').click(function(e){
	e.preventDefault();
	
	$(this).addClass('active');

	return false;
});

$('#newsletter').click(function(e){
	e.preventDefault();

	$(this).addClass('active');

	return false;
});
</script>